package single;

public class ConnectUtil {
    public volatile static Connection connection;

    public static  Connection getSingleton(){
        if (connection==null){
            synchronized (ConnectUtil.class){
                if (connection==null){
                    connection=new Connection();
                }
            }
        }
        return connection;
    }
}
